package com.xmg.day02;

import java.lang.ref.SoftReference;

public class SoftRefernceDemo {
    public static void main(String[] args) {
        SoftReference<Byte[]> softReference = new SoftReference<>(new Byte[1024*1024*1]);
        System.out.println(softReference.get());

//        Byte[] bytes = new Byte[1024*1024*3];
        SoftReference<Byte[]> s2 = new SoftReference<>(new Byte[1024*1024*3]);
        System.out.println(softReference.get());
    }
}
